package com.maxd.respository.helpTask;

import com.maxd.model.HelpMaintain;
import com.maxd.model.HelpMaintainDetails;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.Repository;
import org.springframework.data.repository.query.Param;

import java.util.List;
import java.util.Map;

public interface HelpMaintainDetailsRepository extends Repository<HelpMaintainDetails, Long> {

    @Query(value = "select * from help_maintain_details where help_maintain_id=:helpMaintainId order by classify",nativeQuery = true)
    List<HelpMaintainDetails> selectByHelpMaintainId(@Param("helpMaintainId") Long helpMaintainId);

}
